Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stuttering and freezing of client while computing sync state changes (macOS VFS) #7397

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

claucambra
Copy link
Collaborator

Every time we compute the overall sync state we check if the File Provider Extension is reachable so we can display if this has encountered a problem. The issue is that if it is not reachable, we wait 3 seconds to receive a reply, and if we do not, we wait all of those 3 seconds. Now have that happen every single time we need to compute the sync state.

This PR addresses the problem by slashing the wait time down to 1 second and adding a reachability check timeout of 300 seconds, so we will (worst case) encounter a 1 second freeze every 5 minutes instead

…ant to check if it is reachable

Only check every 60 seconds, this way we do not freeze the client for 3
seconds every time that we want to check the reachability while the
extension is unreachable

Signed-off-by: Claudio Cambra <[email protected]>
Any longer does not really yield any positive result and freezes the
client for longer

Signed-off-by: Claudio Cambra <[email protected]>
@claucambra
Copy link
Collaborator Author

/backport to stable-3.14

@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7397-568243100dc9d1f4b583ec98056dd73737ac6748-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

Copy link

sonarcloud bot commented Oct 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants